<template>
  <div class="order-container">
    <ItemView v-for="(item,index) in orderList" :key="index" :data="item"/>
  </div>
</template>
<script setup lang="ts">
import { useOrder } from "./use/useOrder"
import ItemView from "./components/ItemView.vue"

const props = defineProps<{
  type:string
}>()

const { orderList } = useOrder(props.type)

</script>
<style lang="less" scoped>
.order-container {
  margin-top: 5px;
}
</style>
